package hsintiao.com.xintiaoAPP.mapper;

import hsintiao.com.xintiaoAPP.entity.HeartData;
import hsintiao.com.xintiaoAPP.entity.heart.CanShu;
import hsintiao.com.xintiaoAPP.entity.heart.UserRate;
import hsintiao.com.xintiaoAPP.entity.vo.UserRateVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HeartDataMapper {

    void saveHeartData(HeartData data);//保存心电数据

    void saveCanShu(@Param(value = "userID")Long userID,@Param(value = "size") Long size,
                    @Param(value = "x") String x1, @Param(value = "y") String y1,
                    @Param(value = "t_h") float t_h);

    CanShu getCanShuforid(Long id);

    void InifDataCanShu(Long id);

    Integer getStartNum(@Param(value = "userID") Long userID);

    void updateStartNum(@Param(value = "startnum") Long size,@Param(value = "userID") Long userID);

    void updataCanShu(@Param(value = "userID")Long userID,@Param(value = "size") Long size,
                      @Param(value = "x") String x1, @Param(value = "y") String y1,
                      @Param(value = "t_h") float t_h);

    String getDataForID(Long id);

    List<HeartData> getListForL(Long userID);

    String getDataForIDnew();

    void insertUserRate(UserRate rate);//添加某个用户的心率数据

    void updateUserRate(UserRate rate);

    List<UserRateVO> getListRateForUser(Long[] ids);

}
